package day2;

public class Bus extends Automobile{
    private int number;

    public Bus(String brand, String plateNumber,int number) {
        super(brand, plateNumber);
        this.number = number;
    }

    public int getRent(int days) {
        if(this.number <= 16) {
            return 400*days;
        }else {
            return 600*days;
        }
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
}
